//
//  HomeController.m
//  WJSinaHomeMenu
//
//  Created by tqh on 2019/5/16.
//  Copyright © 2019 tqh. All rights reserved.
//

#import "HomeController.h"
#import "ViewController.h"
#import "MouoSinaMenuView.h"

@interface HomeController ()

@property (nonatomic,strong) ViewController *leftController;
@property (nonatomic,strong) UIViewController *rightController;
@property (nonatomic,strong) UIScrollView *scrollView;
@property (nonatomic,strong) MouoSinaMenuView *menuView;
@end

@implementation HomeController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.leftController.view];
    [self addChildViewController:self.leftController];

}

#pragma mark - 懒加载

- (UIScrollView *)scrollView {
    if (!_scrollView) {
        _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height-64)];
        _scrollView.contentSize = CGSizeMake([UIScreen mainScreen].bounds.size.width*2, [UIScreen mainScreen].bounds.size.height-64);
        _scrollView.bounces = NO;
    }
    return _scrollView;
}

- (ViewController *)leftController {
    if (!_leftController) {
        _leftController = [[ViewController alloc]init];
    }
    return _leftController;
}

- (UIViewController *)rightController {
    if (!_rightController) {
        _rightController = [[UIViewController alloc]init];
    }
    return _rightController;
}

@end
